package com.xuecheng.base.exception;

import lombok.Getter;

/**
 * Created with IntelliJ IDEA.
 * Description: 通用错误信息
 * User: ws
 * Date: 2024-06-11
 * Time: 16:53
 */
@Getter
public enum CommonError {

    UNKNOWN_ERROR("执行过程异常，请重试。"),
    PARAMS_ERROR("非法参数"),
    OBJECT_NULL("对象为空"),
    QUERY_NULL("查询结果为空"),
    REQUEST_NULL("请求参数为空");

    private final String errMessage;

    private CommonError(String errMessage) {
        this.errMessage = errMessage;
    }

}
